set s1 "hello world"
set s2 "hello java"
puts [string compare s1 s2]
if {[string compare s1 s2] == 1} {
	puts "s1 与 s2 是一样的"
}

if {[string compare s1 s2] == -1} {
	puts "s1 与 s2 是不一样的"
}
